package javango.forms.widgets;

import java.util.Map;

public class TextInputWidget extends Input {

	private boolean hidden;
	
	public TextInputWidget() {
		super();
	}

	public TextInputWidget(Map<String, Object> attrs) {
		super(attrs);
	}

	@Override
	public String getInputType() {
		if (isHidden()) {
			return "hidden";
		}
		return "text";
	}

	public boolean isHidden() {
		return hidden;
	}

	public TextInputWidget setHidden(boolean hidden) {
		this.hidden = hidden;
		return this;
	}

	
}
